package com.jnevision.extra.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.jnevision.util.DateUtil;

/**
 * <p>
 * 它得收入
 * </p>
 *
 * @author gavin
 * @since 2019-07-14
 */
@TableName("b_extra")
public class Extra extends Model<Extra> {
    private static final long serialVersionUID = 3533894443018857216L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    /**
     * 用户
     */
    @TableField("user_id")
    private String userId;

    /**
     * 部门
     */
    @TableField("dept_id")
    private Integer deptId;

    /**
     * 它得名称
     */
    @TableField("name")
    private String name;

    /**
     * 金额
     */
    @TableField("money")
    private String money;

    /**
     * 说明
     */
    @TableField("remark")
    private String remark;

    /**
     * 时间
     */
    @TableField("extra_time")
    private String extraTime = DateUtil.getNormalTime();

    @TableField("type_id")
    private Integer typeId;

    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String deptName;
    @TableField(exist = false)
    private String typeName;
    @TableField(exist = false)
    private String phone;
    
    @TableField("state")
    private Integer state;

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDeptName() {
        return this.deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getTypeName() {
        return this.typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getTypeId() {
        return this.typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getExtraTime() {
        return extraTime;
    }

    public void setExtraTime(String extraTime) {
        this.extraTime = extraTime;
    }
    

    public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }

	@Override
	public String toString() {
		return "Extra [id=" + id + ", userId=" + userId + ", deptId=" + deptId + ", name=" + name + ", money=" + money
				+ ", remark=" + remark + ", extraTime=" + extraTime + ", typeId=" + typeId + ", userName=" + userName
				+ ", deptName=" + deptName + ", typeName=" + typeName + ", phone=" + phone + ", state=" + state + "]";
	}


 
}